package 代码随想录_补充题目.字符串反转系列;

/**
 * @author zx
 * @create 2023-02-08 23:00
 */
public class 剑指Offer58_左旋转字符串 {
    public String reverseLeftWords(String s, int n) {
        StringBuilder res = new StringBuilder();
        for(int i = n;i < s.length();i++){
            res.append(s.charAt(i));
        }
        for(int i  = 0;i < n;i++){
            res.append(s.charAt(i));
        }
        return res.toString();
    }
}
